﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using DataAccessLayer;

namespace BusinessLogicLayer
{
    public class MaintainDepartmentInformationControl
    {
        MaintainDeptInfoDAL mdi = new MaintainDeptInfoDAL();

        public object getDepartmentCode(String userName)
        {
            return mdi.getDepartmentCode(userName);
        }

        public object getDepartmentName(String userName)
        {
            return mdi.getDepartmentName(userName);
        }

        public object getDepartmentHead(String userName)
        {
            return mdi.getDepartmentHead(userName);
        }

        public object getRepresentativeName(String userName)
        {
            return mdi.getRepresentativeName(userName);
        }

        public object getUpdatedRepresentativeName(string userName)
        {
            return mdi.getUpdatedRepresentativeName(userName);
        }

        public object getCollectionPoint()
        {
            return mdi.getCollectionPoint();
        }

        public object getUpdatedCollectionPoint(string userName)
        {
            return mdi.getUpdatedCollectionPoint(userName);
        }

        //public object getCollectionTime(String collectionID)
        //{
        //    return mdi.getCollectionTime(collectionID);
        //}

        public object getCollectionTimeByCPID(int collPointID)
        {
            return mdi.getCollectionTimeByCPID(collPointID);
        }

        public void updateInfo(string deptCode, int repID, int collPointID)
        {
            mdi.addInfo(deptCode, repID, collPointID);
        }
    }
}
